<?php
/*
 * Created on Jan 16, 2013
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
function frontend_channel_news_info(){
	return array(
        'sample' => array(
            'title' => t('Sample'),
            'Description' => t('Sample channel description'),
            'access arguments' => array('access content'),
            'static' => 'yes',
            'menu' => 'sample' // related menu
        ),
        
    );
}

function frontend_channel_news_settings(){
	
}

function frontend_channel_news_init(){
	return request_path();
}

function frontend_channel_news_viewPreset(&$vars, $path){
	
}

function frontend_channel_news_page_build(){
    
}

/**
 * @Description:
 * The parameter [channel or channel/category] should be matched with request_path();
 * The path scan rule is the same with menu path.
 * e.g: "a/b/c" == request_path();
 *      Client library scan order: 
 *      1. "a/b/c"==[channel or channel/category]
 *      2. "a/b"==[channel or channel/category]
 *      3. "a"==[channel or channel/category]
 * The scan process would be break when any one of the client lib settings matched or nothing matched.
 * */
function frontend_channel_news_clientLibSettings($path){
	return array(
        '[channel or channel/category]' => array(
            // the file path is under channel base path "[theme path]/channelLib/sample/[file path][.css]|[.js]"
            'type: css|js' => 'file name prefix', // The real file name rule is "[file name prefix].channel.[js|cssj"  
        ),
        '[channel or channel/category]' => array(
            // the file path is under channel base path "[theme path]/channelLib/sample/[file path][.css]|[.js]"
            'type: css|js' => 'file name prefix', // The real file name rule is "[file name prefix].channel.[js|cssj"  
        )
    );
}